package com.qifan.alb2b.service;

import org.springframework.stereotype.Service;

import com.qifan.alb2b.dao.ActivityInfoDao;
import com.qifan.alb2b.domain.ActivityInfoDomain;
import com.qifan.alb2b.util.DataGridModel;
import com.qifan.alb2b.util.Page;

/**
 * 活动业务对象
 * @author hc24
 *
 */
@Service
public class ActivityInfoService {
	private ActivityInfoDao activityInfoDao;

	public void setActivityInfoDao(ActivityInfoDao activityInfoDao) {
		this.activityInfoDao = activityInfoDao;
	}
	
	public Page query(DataGridModel dgm,ActivityInfoDomain aid){
		return activityInfoDao.query(dgm, aid);
	}
	
	public ActivityInfoDomain getActivityById(String aid){
		return activityInfoDao.getActivityById(aid);
	}
	
	public void add(ActivityInfoDomain activityInfoDomain){
		activityInfoDao.add(activityInfoDomain);
	}
	
	public void update(ActivityInfoDomain activityInfoDomain){
		activityInfoDao.update(activityInfoDomain);
	}
	
	public void delete(String[] ids){
		activityInfoDao.delete(ids);
	}	
}
